package models;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import play.db.jpa.Model;

@Entity
public class CoreTable extends Model{
    
    public final static String EMPTY_TABLE_NAME = "";

    public CoreTable() {
    }
    
    public CoreTable(Long tableId) {
        this.id = tableId;
    }
    
    public String name;
    
    @ManyToOne(optional=false)
    @JoinColumn(nullable = false, name = "maintainerid", referencedColumnName = "id")
    public User maintainer;
    
    public Date createDate;
    
    public boolean isDelete = false;
    
    public Date updateDate;
    
    public String description;
}
